<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./todo.css">
</head>

<body>
    <div class="box">
        <input onkeypress="addItem();" type="text" class="inp" placeholder="请输入清单">
        <ul onclick="deleteItem();" class="list">
            <li class="item">
                <span>1. xxxx</span>
                <button>x</button>
            </li>
            <li class="item">
                <span>1. xxxx</span>
                <button>x</button>
            </li>
            <li class="item">
                <span>1. xxxx</span>
                <button>x</button>
            </li>
        </ul>

    </div>

    <script src="./todo.js"></script>
</body>

</html>